#!/bin/bash

# listen.sh
ps aux | grep listen
ps aux | grep listen | grep -v grep | awk '{print $2}'
ps aux | grep listen | grep -v grep | awk '{print $2}' | xargs kill -9

# yii
ps aux | grep yii
ps aux | grep yii | grep -v grep | awk '{print $2}' | xargs kill -9



# not output

cd /cyzz/pp/api
nohup ./listen1.sh >/dev/null 2>&1 &
nohup ./listen2.sh >/dev/null 2>&1 &
nohup ./listen3.sh >/dev/null 2>&1 &
nohup ./listen4.sh >/dev/null 2>&1 &
nohup ./listen5.sh >/dev/null 2>&1 &
nohup ./listen6.sh >/dev/null 2>&1 &